package cn.ikun.mzw.zz;

import java.lang.reflect.Field;
import java.lang.reflect.Method;

public class AppCore {
    public static void main(String[] args) throws Exception{
        Class<?> C = Class.forName("cn.ikun.mzw.zz.CustomerService");
        Object c = C.newInstance();
        Field service = C.getDeclaredField("service");
        service.setAccessible(true);

        Class<?> U = Class.forName("cn.ikun.mzw.zz.UserService");
        Object o = U.newInstance();
        service.set(c,o);


        Method say = C.getDeclaredMethod("say");
        say.invoke(c);


    }
}
